import request from '@/utils/request'

// 查询订单耗材包对应列表
export function listOrderspackages(query) {
  return request({
    url: '/service/orderspackages/list',
    method: 'get',
    params: query
  })
}

// 查询订单耗材包对应详细
export function getOrderspackages(orderspackagesId) {
  return request({
    url: '/service/orderspackages/' + orderspackagesId,
    method: 'get'
  })
}

// 新增订单耗材包对应
export function addOrderspackages(data) {
  return request({
    url: '/service/orderspackages',
    method: 'post',
    data: data
  })
}

// 修改订单耗材包对应
export function updateOrderspackages(data) {
  return request({
    url: '/service/orderspackages',
    method: 'put',
    data: data
  })
}

// 删除订单耗材包对应
export function delOrderspackages(orderspackagesId) {
  return request({
    url: '/service/orderspackages/' + orderspackagesId,
    method: 'delete'
  })
}
